package com.hxgz.steel.dao;

import com.hxgz.steel.domain.QuotationInfo;
import com.hxgz.steel.dto.ListByQuotationIdAndAskInfoIdDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("QuotationInfoMapper")
public interface QuotationInfoMapper {

  int deleteByPrimaryKey(Long id);

  int insert(QuotationInfo record);

  int insertSelective(QuotationInfo record);

  QuotationInfo selectByPrimaryKey(Long id);

  List<QuotationInfo> selectByQuotationId(@Param("id") Long id);

  int updateByPrimaryKeySelective(QuotationInfo record);

  int updateByPrimaryKey(QuotationInfo record);

  int updatePrice(QuotationInfo info);

  List<QuotationInfo> listGoodsByAskId(@Param("askId") Long id, @Param("userId") Long userId);

 QuotationInfo selectByQuotationIdAndAskInfoId(@Param("askInfoId") Long askInfoId, @Param("quotationId") Long quotationId);

  int deleteByQaId(Long id);

  List<Long> getIdsByAskId(@Param("askId") Long askId);

  void deleteByIds(List<Long> list);

    List<ListByQuotationIdAndAskInfoIdDto> getListByQuotationId(@Param("quotationId") Long quotationId, @Param("askId") Long askId);
}